<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0px;
				padding: 0px;
			}
			#container2{
				width: 100%;
				height: 600px;
				display: flex;
				justify-content: center;
				align-items: center;
			}
			#head2{
				width:600px ;
				height: 500px;
				display: flex;
				/* background-color: red; */
				align-items: center;
				overflow: hidden;
			}
			#imgid2{
				display: flex;
				width: 1600px;
				height: 100px;
			}
			#imgid2 img{
				width: 100px;
				height: 100px;
			}
		</style>
	</head>
	<body>
		<div id="container2">
			<div id="head2">
				<div id="imgid2" onmouseenter="aa()" onmouseleave="bb()">
					<img src="img/lunbo/1.jpeg" >
					<img src="img/lunbo/2.jpeg" >
					<img src="img/lunbo/3.jpeg" >
					<img src="img/lunbo/4.jpeg" >
					<img src="img/lunbo/5.jpeg" >
					<img src="img/lunbo/6.jpeg" >
					<img src="img/lunbo/7.jpeg" >
					<img src="img/lunbo/8.jpeg" >
					<img src="img/lunbo/9.jpeg" >
					<img src="img/lunbo/10.jpeg" >
					<img src="img/lunbo/1.jpeg" >
					<img src="img/lunbo/2.jpeg" >
					<img src="img/lunbo/3.jpeg" >
					<img src="img/lunbo/4.jpeg" >
					<img src="img/lunbo/5.jpeg" >
					<img src="img/lunbo/6.jpeg" >
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript">
		var divimgid2 = document.getElementById('imgid2');
		var picture2=0;
		var timer =null;
		
			function scrtime(){
				picture2--;
				divimgid2.style.marginLeft=picture2+'px'
				if(picture2==-1000){
					picture2=0;
				}
				if(picture2%100==0){
					clearInterval(timer);
				var pictimer =setTimeout(function(){
						timer=setInterval(scrtime,10);
						
					},1000)
				}
			}

			 function aa(){
				clearInterval(timer);
				
			}
			function bb(){
				timer=setInterval(scrtime,10);
				
			}
			onload = function(){
				timer=setInterval(scrtime,10);
			}
			
	</script>
</html>
